package chapter03

import chisel3._

class MyModuleNew extends Module {
  val io = IO(new Bundle {
    val x = new MyIO
    val y = Flipped(new MyIO)
    val supX = new MyIO
  })
  io.x <> io.y //相当于 io.y.in:=io.x.in;io.x.out:=io.y.out
  val sub = Module(new MySubModule)
  io.supX <> sub.io.sbuX //相当于 sub.io.sbuX.in:=io.supX.in;io.supX.out:= sub.io.sbuX.out
}
